<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/include/taglib.jsp"%>
<html>
	<head>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="format-detection" content="telephone=no">
		<meta charset="UTF-8">
		<title>用户中心-修改密保问题</title>
		<script src="/v3/js/jquery-1.10.2.min.js" type="text/javascript"></script>		
		<link type="text/css" rel="stylesheet" href="/v3/css/wstyle.css">
		<link type="text/css" rel="stylesheet" href="/v3/css/account.css">
	</head>
<style>
</style>
	<body>
		<div id="wrap">
			  <div class="change-secrety">
			  <form action="/changeSecretQuestionWchat2.do" method="POST" id="changeSecretyForm">
			     <div class="link-touch">
			      <ul class="items">
			        <li>
			          <label class="txt">当前问题</label>
			          <select class="select sec-select" id="securityQuestion" name="paramMap.securityQuestion" >
			            <option value="您的生日">您的生日?</option>
						<option value="您父亲的姓名">您父亲的姓名?</option>
						<option value="您母亲的姓名">您母亲的姓名?</option>
						<option value="您高中班主任姓名">您高中班主任姓名?</option>
						<option value="您的出生地">您的出生地?</option>
						<option value="您初恋的姓名">您初恋的姓名?</option>
						<option value="您公司的名称">您公司的名称?</option>
						<option value="您的职业">您的职业?</option>
						<option value="您的爱好">您的爱好?</option>
						<option value="您的配偶">您的配偶?</option>
						<option value="您的小学校名">您的小学校名?</option>
						<option value="您的小学班主任姓名">您的小学班主任姓名?</option>
			          </select>
			        </li>
			        <li>
			          <label class="txt">答案</label>
			          <input type="text" class="input" id="answer" name="paramMap.answer" maxlength="255" placeholder="请输入问题的答案">
			        </li>
			      </ul>
			    </div>
			    <div class="link-touch">
			      <ul class="items">
			        <li>
			          <label class="txt">新的问题</label>
			          <select class="select sec-select"  id="newsecretQuestion" name="paramMap.newsecretQuestion" >
			            <option value="您的生日">您的生日?</option>
						<option value="您父亲的姓名">您父亲的姓名?</option>
						<option value="您母亲的姓名">您母亲的姓名?</option>
						<option value="您高中班主任姓名">您高中班主任姓名?</option>
						<option value="您的出生地">您的出生地?</option>
						<option value="您初恋的姓名">您初恋的姓名?</option>
						<option value="您公司的名称">您公司的名称?</option>
						<option value="您的职业">您的职业?</option>
						<option value="您的爱好">您的爱好?</option>
						<option value="您的配偶">您的配偶?</option>
						<option value="您的小学校名">您的小学校名?</option>
						<option value="您的小学班主任姓名">您的小学班主任姓名?</option>
			          </select>
			        </li>
			        <li>
			          <label class="txt">答案</label>
			          <input type="text" class="input" id="newanswer" name="paramMap.newanswer" maxlength="255" placeholder="请输入问题的答案">
			        </li>
			      </ul>
			      <div id="errorTip" class="vtip errs">${errorTip}</div>
			    </div>
			  </form>
			  </div>
			  <div class="Nxt-btn">
			  	<c:choose> 
				<c:when test="${requestScope.errorTip != null}">
				  <a href="javascript:void(0)" id="">修改密保问题</a>
				</c:when>
				<c:otherwise>
					<a href="javascript:void(0)" id="submit">修改密保问题</a>								
				</c:otherwise>
			  	</c:choose>  
			  </div>
			</div>
		<jsp:include page="/include/v3/footer.jsp"></jsp:include>
<script type="text/javascript">
$(function(){
	$("#submit").click(function(){
		modifySecretQuestion();
	});
});
function modifySecretQuestion(){
	if($("#answer").val() == ""){
		$("#errorTip").html("请输入密保问题的答案").show();
		return;
	}
	if($("#newanswer").val() == ""){
		$("#errorTip").html("请输入新密保问题的答案").show();
		return;
	}
	$("#changeSecretyForm").submit();
}
</script>
	</body>
</html>
